package cz.muni.fi.pa036is.dto;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Date;
import java.util.List;

/**
 *
 * @author Shebik
 */
public class SeasonDetailTO implements Serializable {
    private Long id;
    private String name;
    private Date startDate;
    private Date endDate;
    private BigDecimal admissionPrice;
    private int pointsForWin;
    private int pointsForDraw;
    private int pointsForLose;
    private int victoryCondition;
    private List<MatchGridTO> matchList;

    public BigDecimal getAdmissionPrice() {
        return admissionPrice;
    }

    public void setAdmissionPrice(BigDecimal admissionPrice) {
        this.admissionPrice = admissionPrice;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPointsForDraw() {
        return pointsForDraw;
    }

    public void setPointsForDraw(int pointsForDraw) {
        this.pointsForDraw = pointsForDraw;
    }

    public int getPointsForLose() {
        return pointsForLose;
    }

    public void setPointsForLose(int pointsForLose) {
        this.pointsForLose = pointsForLose;
    }

    public int getPointsForWin() {
        return pointsForWin;
    }

    public void setPointsForWin(int pointsForWin) {
        this.pointsForWin = pointsForWin;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public int getVictoryCondition() {
        return victoryCondition;
    }

    public void setVictoryCondition(int victoryCondition) {
        this.victoryCondition = victoryCondition;
    }

    public List<MatchGridTO> getMatchList() {
        return matchList;
    }

    public void setMatchList(List<MatchGridTO> matchList) {
        this.matchList = matchList;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final SeasonDetailTO other = (SeasonDetailTO) obj;
        if (this.id != other.id && (this.id == null || !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 5;
        hash = 97 * hash + (this.id != null ? this.id.hashCode() : 0);
        return hash;
    }

    @Override
    public String toString() {
        return "SeasonDetailTO{"
                + "id=" + id
                + "name=" + name
                + "startDate=" + startDate
                + "endDate=" + endDate
                + "admissionPrice=" + admissionPrice
                + "pointsForWin=" + pointsForWin
                + "pointsForDraw=" + pointsForDraw
                + "pointsForLose=" + pointsForLose
                + "victoryCondition=" + victoryCondition + '}';
    }
}
